package cn.wlinker.video.monitor.stream;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;

/**
 * flv服务接口
 *
 * @author gxsjx
 * @version 1.0
 * @date 2025/5/3
 * Copyright © wlinker.cn
 */
public interface IFlvService {

    /**
     * 打开一个流地址
     *
     * @param streamId 流ID
     * @param response 响应请求
     * @author xufeng
     */
    void open(InputStream inputStream, String streamId, HttpServletResponse response);

    /**
     * 打开一个流地址
     *
     * @param url      rtsp流链接
     * @param streamId 流ID
     * @param response 响应请求
     * @author xufeng
     */
    void open(String url, String streamId, HttpServletResponse response);

}